---
title: "Logging"
description: "Logging API Documentation"
icon: "code"
github: "https://github.com/mcp-use/mcp-use/blob/main/libraries/python/mcp_use/middleware/logging.py"
---

import {RandomGradientBackground} from "/snippets/gradient.jsx"

<Callout type="info" title="Source Code">
View the source code for this module on GitHub: <a href='https://github.com/mcp-use/mcp-use/blob/main/libraries/python/mcp_use/middleware/logging.py' target='_blank' rel='noopener noreferrer'>https://github.com/mcp-use/mcp-use/blob/main/libraries/python/mcp_use/middleware/logging.py</a>
</Callout>


## default_logging_middleware
<Card type="info">
### `function` default_logging_middleware

```python
from mcp_use.middleware.logging import default_logging_middleware
```

**Parameters**
><ParamField body="args" required="True" >   Parameter value </ParamField>
><ParamField body="kwargs" required="True" >   Parameter value </ParamField>

**Signature**
```python wrap
def default_logging_middleware(args, kwargs):
```

</Card>
